<?php

namespace app\serversubmitform\service\submitform;
use \app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-09-04 13:59:12
 * @Description: 提交表单 - 意见建议
 */

class Submitform extends ApiBase
{
	
	protected $submitformLogic = 'app\serversubmitform\logic\Submitform';
    protected $submitformValidate = 'app\serversubmitform\validate\Submitform';

    
    /*我的 - 意见建议*/
    public function suggestion(): array 
    {
        $data = $this->issetReceiveData(['app_id'=>0, 'user_id'=>0,'user_info'=>[],'name'=>'','mobile'=>'','title'=>'','content'=>'']);
        return $this->stepRun($data, 'suggestion', '', $this->submitformValidate, $this->submitformLogic);
    }

    /*后台 - 获取意见建议列表*/
    public function getSuggestionList(): array 
    {
        $data = $this->haveIssetReceiveData(['app_id'=>0, 'page'=>1,'listRows'=>15, 'keywords'=>'']);
        return $this->stepRun($data, 'getSuggestionList', '', $this->submitformValidate, $this->submitformLogic);
    }

    /*标记某表单已阅读*/
    public function remarkRead(): array 
    {
        $data = $this->haveIssetReceiveData(['id'=>0]);
        return $this->stepRun($data, 'remarkRead', '', $this->submitformValidate, $this->submitformLogic);
    }

    
}






